/**
*  \file 	deaddrop_bb.c
*
*  \brief	Functions to access the values of the deaddrop from the BOOT_BLOCK.
*
*  \author 	Michael J. Hohmann  <michael.hohmann@linde-mh.de>
*
*/

/*===============================================[ private includes  ]================================================*/
#include "deaddrop.h"

/*================================================[ public functions ]================================================*/

BO deadrop_is_stay_in_bb_flag( void )
{
   return deaddrop_p->stay_in_bb_flag == VALID_FLAG_VALUE;
}

void deadrop_clear_stay_in_bb_flag( void )
{
   deaddrop_p->stay_in_bb_flag = INVALID_FLAG_VALUE;
}

BO deadrop_is_start_application_flag( void )
{
   return deaddrop_p->start_application_flag == VALID_FLAG_VALUE;
}

void deadrop_clear_start_application_flag( void )
{
   deaddrop_p->start_application_flag = 0;
}

void deadrop_set_start_application_flag( void )
{
   deaddrop_p->start_application_flag = VALID_FLAG_VALUE;
}

void deadrop_set_reset_reason( U32 reason )
{
   deaddrop_p->reset_reason= reason;
}

/***********************************************************************************************************************
*                             Copyright 2017 Linde Material Handling. All rights reserved.                             *
***********************************************************************************************************************/
